package com.xuyanze.es.face;

import java.io.Serializable;
import java.util.function.Consumer;

/**
 * @author ：lzy
 * @date ：2023-01-13
 * @description：
 */
public interface Nested<Param,Children> extends Serializable {

    /**
     * and
     * <p>p1=1 and p2=2</p>
     * @param consumer
     * @return
     */
    Children and(Consumer<Param> consumer);

    /**
     * 嵌套 or
     * <p> p1=1 or p2=2</p>
     * @param consumer
     * @return
     */
    Children or(Consumer<Param> consumer);


    Children or();



}
